package com.castudio.Filter;

import lombok.Data;


//前后端协议类:用于前后端数据格式统一
@Data
public class R {
    private Boolean flag;
    private Object data;
    private String msg;


    //以下是各种被调用的构造方法

    public R() {
    }

    public R(Boolean flag) {this.flag = flag;}

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R(String msg) {
        this.flag = false;
        this.msg = msg;
    }

    public R(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }
}
